package com.bdjk.bdmw.InfoGath.business.LBS.dao.impl;

import java.util.ArrayList;
import java.util.List;

import com.bdjk.bdmw.InfoGath.business.LBS.dao.BaseStationDAO;
import com.bdjk.bdmw.InfoGath.common.dao.impl.JdbcDAOImpl;
import com.bdjk.bdmw.InfoGath.exception.BusinessException;

public class BaseStationDAOImpl extends JdbcDAOImpl implements BaseStationDAO {
    
	@Override
	public List<Object> getBaseStationLocation(long mnc, long lacId, long cellId) throws BusinessException{
		    List<Object> rs = new ArrayList();
		    String sql = "SELECT lon, lat FROM cellinfo WHERE mnc=? AND lac=? AND ci=?";
		    List<Object> params = new ArrayList();
		    params.add(Long.valueOf(mnc));
		    params.add(Long.valueOf(lacId));
		    params.add(Long.valueOf(cellId));
		    rs = executeResultSQL(sql, params);
		    List<Object> result = new ArrayList();
		    if (rs.size() > 0) {
		      result = (List)rs.get(0);
		    }
		    return result;
		  }

}
